import request from '@/utils/request'

// 查询元数据中心列表
export function listCatalog(query) {
    return request({
        url: '/resource/catalog/list',
        method: 'get',
        params: query
    })
}

// 查询元数据中心详细
export function getCatalog(id) {
    return request({
        url: '/resource/catalog/' + id,
        method: 'get'
    })
}

// 新增元数据中心
export function addCatalog(data) {
    return request({
        url: '/resource/catalog',
        method: 'post',
        data: data
    })
}

// 修改元数据中心
export function updateCatalog(data) {
    return request({
        url: '/resource/catalog',
        method: 'put',
        data: data
    })
}

// 删除元数据中心
export function delCatalog(id) {
    return request({
        url: '/resource/catalog/' + id,
        method: 'delete'
    })
}

export function testCatalog(data) {
    return request({
        url: '/resource/catalog/testCatalog',
        method: 'post',
        data:data
    })
}

export function allList() {
    return request({
        url: '/resource/catalog/allList',
        method: 'get'
    })
}



